import request from '@/utils/request'

// 查询半流程授权订单列表
export function listApibPushInfo(query) {
  return request({
    url: '/merchant/pushApibInfo/list',
    method: 'get',
    params: query
  })
}

// 查询半流程授权订单详细
export function getPushApibInfo(id) {
  return request({
    url: '/merchant/pushApibInfo/' + id,
    method: 'get'
  })
}

// 新增半流程授权订单
export function addPushApibInfo(data) {
  return request({
    url: '/merchant/pushApibInfo',
    method: 'post',
    data: data
  })
}

// 修改半流程授权订单
export function updatePushApibInfo(data) {
  return request({
    url: '/merchant/pushApibInfo',
    method: 'put',
    data: data
  })
}

// 删除半流程授权订单
export function delPushApibInfo(id) {
  return request({
    url: '/merchant/pushApibInfo/' + id,
    method: 'delete'
  })
}
